package com.hilon.foundation.simple;


import com.hilon.foundation.simpler.EntityBaseSimpler;
import jakarta.persistence.Entity;
import jakarta.persistence.Inheritance;
import jakarta.persistence.InheritanceType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class EntityBaseSimple extends EntityBaseSimpler {
    private String personCreate;
    private Date timeCreate;
    private String personEdit;
    private Date timeEdit;
    private String personCheck;
    private Date timeCheck;
    private String personInvalid;
    private Date timeInvalid;

    @Override
    public String toString() {
        return "EntityBaseSimple{" +
                "personCreate='" + personCreate + '\'' +
                ", timeCreate=" + timeCreate +
                ", personEdit='" + personEdit + '\'' +
                ", timeEdit=" + timeEdit +
                ", personCheck='" + personCheck + '\'' +
                ", timeCheck=" + timeCheck +
                ", personInvalid='" + personInvalid + '\'' +
                ", timeInvalid=" + timeInvalid +
                "} " + super.toString();
    }
}
